package com.ssh.controller;
import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ssh.dao.LoginDao;

@Controller
public class UsersController {
   
	@Autowired
    LoginDao dao;
	
   @RequestMapping("/doLogin")
   public String doLogin() {
       if(dao.doLogin()) {
    	 return "success";
       }
       return "index";
   }
}
